﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using VAdvantage.Utility;
using System.Data;

namespace VAdvantage.Model
{
    public class MAcctProcessorLog : X_C_AcctProcessorLog, ViennaProcessorLog
    {
        /// <summary>
        /// Standard Constructo
        /// </summary>
        /// <param name="ctx"></param>
        /// <param name="C_AcctProcessorLog_ID"></param>
        /// <param name="trxName"></param>
        public MAcctProcessorLog(Ctx ctx, int C_AcctProcessorLog_ID, String trxName)
            : base(ctx, C_AcctProcessorLog_ID, trxName)
        {

        }

        /// <summary>
        /// Load Constructor
        /// </summary>
        /// <param name="ctx"></param>
        /// <param name="idr"></param>
        /// <param name="trxName"></param>
        public MAcctProcessorLog(Ctx ctx, IDataReader idr, String trxName)
            : base(ctx, idr, trxName)
        {

        }

        /// <summary>
        /// Parent Constructor
        /// </summary>
        /// <param name="parent"></param>
        /// <param name="summary"></param>
        public MAcctProcessorLog(MAcctProcessor parent, String summary)
            : this(parent.GetCtx(), 0, parent.Get_TrxName())
        {
            SetClientOrg(parent);
            SetC_AcctProcessor_ID(parent.GetC_AcctProcessor_ID());
            SetSummary(summary);
        }

    }
}
